package com.aisino.encrypt.entity;

/**
 * 摘要加密算法
 */
public enum Digest {
    /**
     * MD5加密
     */
    MD5("MD5",32),
    /**
     * SHA加密
     */
    SHA("SHA",32);
    //算法
    private String algorithm;
    //密钥位数
    private int keySize;

    Digest(String algorithm, int keySize) {
        this.algorithm = algorithm;
        this.keySize = keySize;
    }

    public String getAlgorithm() {
        return this.algorithm;
    }

    public int getKeySize() {
        return this.keySize;
    }
}
